<?php
/*
 * 1、载入jquery-1.7
 * 2、载入jquery图片轮播插件
 */
$jquery_link = $template->get_template_dir('jquery-1.7.2.min.js',DIR_WS_TEMPLATE, $current_page_base,'jscript').'/jquery-1.7.2.min.js';
$jquery_photo_show_link = $template->get_template_dir('jqFancyTransitions.1.8.js',DIR_WS_TEMPLATE, $current_page_base,'jscript').'/jqFancyTransitions.1.8.js';
?>
<?php 
if (file_exists($jquery_link)&&file_exists($jquery_photo_show_link)){
?>
<script type="text/javascript" src="<?php echo $jquery_link?>"></script>
<script type="text/javascript" src="<?php echo $jquery_photo_show_link?>"></script>
<script>  
$(document).ready( function(){
	if($('#slideshowHolder').size()>0)
		$('#slideshowHolder').jqFancyTransitions({
			effect: 'zipper', // wave, zipper, curtain
			width: 1000, // width of panel
			height: 156, // height of panel
			strips: 20, // number of strips
			delay: 3000, // delay between images in ms
			stripDelay: 50, // delay beetwen strips in ms
			titleOpacity: 0.6, // opacity of title
			titleSpeed: 1000, // speed of title appereance in ms
			position: 'top', // top, bottom, alternate, curtain
			direction: 'left', // left, right, alternate, random, fountain, fountainAlternate
			navigation: false, // prev and next navigation buttons
			links: false // show images as links
	});
});  
</script> 
<?php 
}
?>